#include <stdio.h>

#define MAXSIZE 100
typedef int ElemType;

typedef struct 
{
    ElemType data[MAXSIZE];
    int top;
}Stack;


void Init_Stack(Stack *s)
{
    s->top = -1;
}

int isEmpty(Stack *s)
{
    return s->top == -1;
}

int Push(Stack *s , ElemType e)
{
    if(s->top == MAXSIZE - 1)   // Stack full
    {
        return -1;
    }
    s->top ++;
    s->data[s->top] = e;
    return 0;
}

int pop(Stack *s , ElemType *e)
{
    if(s->top == -1)   // Stack empty
    {
        return -1;
    }
    *e = s->data[s->top];
    s->top --;
    return 0;
}

int GetTop(Stack *s , ElemType *e)
{
    if(s->top == -1)   // Stack empty
    {
        return -1;
    }
    *e = s->data[s->top];
    return 0;
}


int main()
{

}